package com.tjdr.his.drugstore.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tjdr.his.domain.entity.StorageInfo;

public interface IStorageInfoService {
    /**
     *
     * @param value
     * @param drugType
     * @param pageSize
     * @param currentPage
     * @return
     */
    IPage selectStorageInfoByProperty(String value,String drugType,int pageSize,int currentPage);

    /**
     * 添加
     * @param storageInfo
     * @return
     */
    int insertStorageInfo(StorageInfo storageInfo);

    /**
     * 修改
     * @param storageInfo
     * @return
     */
    int updateStorageById(StorageInfo storageInfo);

    /**
     * 删除业务
     * @param storageInfo
     * @return
     */
    int deleteStorageById(StorageInfo storageInfo);

    /**
     * 根据药品编码获取库存量
     * @param drugCode
     * @return
     */
    StorageInfo getStorageByDrugCode(String drugCode);
}
